﻿
function show() {
    window.location.href = "http://emstock.emoney.cn/djc/wym.html";
}

function closeF(n) {
    $("#dtab_" + n).hide(500);
}

/*操盘手加密狗--Add_Cart('17') 操盘手决策版充值卡360--Add_Cart（'9'）;操盘手决策版充值卡720-Add_Cart（'10'）*/
/*益盟名家投资软件--Add_Cart（'15'） 操盘手手机版--Add_Cart（'23'）手机主力版（L-2)--Add_Cart（'31'）*/
/*操盘手决策版-Add_Cart（'1'）操盘手主力版--Add_Cart（'32'）操盘手乾坤版-Add_Cart（'36'）*/
function Add_Cart(id) {
    if (id == '9' || id == '10') {
        feature = "dialogWidth:350px;dialogHeight:200px;status:no;help:no";
        var temp = window.showModalDialog('CardSelect2.aspx?pid=' + id, null, feature);
        if (temp == 'true') {
            intoCart(id);
            return;
        }
    }
    else {
        intoCart(id);
    }
}


function Add_Cart22(id) {
    if (id >= 25) {
        var level = $F("user_level");

        if (level == "") {
            $F("Card_id", id);
            Div_Display();
            $("txt_UserName").focus();
        }
        else {
            if (level == 2) {
                intoCart(id);
            }
            else {

                var msg2 = id == '25' ? "决策版用户不能购买1280元的充值卡" : "决策版用户不能购买1980元的充值卡";
                alert(msg2);
                return;
            }
        }
    }
}
/*操盘手主力版用户享受三种优惠续费价格 --Add_CartDialog()*/

function Add_CartDialog() {
    feature = "dialogWidth:350px;dialogHeight:200px;status:no;help:no";
    var tt = window.showModalDialog('CardSelect.aspx', null, feature);
    if (tt != null) {
        var cc = tt.split("|");
        var pid = cc[0];
        var uid = cc[1];
        intoCart2(pid, uid);
    }
}

function intoCart2(id, uid) {
    //http://pay.emoney.cn/shopping11.aspx?uid=43&ProductUserId=
    //var _url = "http://pay.emoney.cn/shopping110.aspx";
    var _url = "shopping11.aspx";
    _url += "?ProductID=" + id + "&UserID=" + uid;
    // document.location = _url;
    window.open(_url);
}


function intoCart(id) {
    var uid = "";
    if (id == '9' || id == '10') {
        uid = document.getElementById("txtName").value;
    }
    //var _url = "http://pay.emoney.cn/shopping110.aspx";
    var _url = "shopping11.aspx";
    _url += "?ProductID=" + id + "&UserID=" + uid;
    window.open(_url);
}

function DIVBG() {
    document.getElementById("qh").style.display = 'none';
    document.getElementById("qh1").style.display = ''
}
function DIVBG1() {
    document.getElementById("qh").style.display = '';
    document.getElementById("qh1").style.display = 'none';
}


  

 

